Skip to content

Conversation

masci
Copy link
Contributor

@masci masci commented Sep 3, 2019

Continuation of #345, extend the PrintResult API usage to all those commands that need a complex output rendering.

To reduce boilerplate, feedback.Print was changed so that it will serialize strings to JSON when needed; this way, all those commands that don't need to provide a complex output can simply do feedback.Print("message") without caring of the output format, see version for example.

@masci masci force-pushed the massi/output-reprise branch from 3fc8926 to 0475288 Compare September 20, 2019 13:54
@masci masci merged commit 94a5eeb into master Oct 9, 2019
@masci masci deleted the massi/output-reprise branch October 9, 2019 10:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants